package com.qingke.animal1;
public class Cat extends Animal{
	
	public Cat(String name, int age,int num) {
		super(name, age,num);
	}
	private int catchMouseNumber=0;
	public void catchMouse(){
		System.out.println("cat can catchMouse");
		catchMouseNumber++;
		System.out.println("I catch"+catchMouseNumber+"mouse");
	}
	
	public void run(){
		System.out.println("cat is running");
	}

	@Override
	public void eat() {
		System.out.println("cat is eating mouse");
	}
}
